{extend name="base/main" /}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>预约管理 / 预约列表</h5>
        </div>
        <div class="fixed-table-toolbar">
            <div class="bars pull-left" style="margin-top:0px;">
                <a href="{:url('Distributor/index',['model'=>1])}" class="btn btn-success btn-xs dropdown-toggle">&nbsp;&nbsp;全部</a>
                <a href="{:url('Distributor/index',['model'=>2])}" class="btn btn-success btn-xs dropdown-toggle">&nbsp;&nbsp;今天</a>
                <a href="{:url('Distributor/index',['model'=>3])}" class="btn btn-success btn-xs dropdown-toggle">&nbsp;&nbsp;昨天</a>
                <a href="{:url('Distributor/index',['model'=>4])}" class="btn btn-success btn-xs dropdown-toggle">&nbsp;&nbsp;最近7天</a>
                <a href="{:url('Distributor/index',['model'=>5])}" class="btn btn-success btn-xs dropdown-toggle">&nbsp;&nbsp;最近30天</a>
                <a href="{:url('Distributor/index',['model'=>6])}" class="btn btn-success btn-xs dropdown-toggle">&nbsp;&nbsp;本月</a>
                <a href="{:url('Distributor/index',['model'=>7])}" class="btn btn-success btn-xs dropdown-toggle">&nbsp;&nbsp;本年</a>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="search-area" id="toggle" style="margin-bottom: 15px;">
                            <form class="form-horizontal m-t" action="{:url('Distributor/index')}" method="get">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">名称：</label>
                                    <div class="col-sm-3">
                                        <input name="title" type="text" class="form-control" value="{:input('title')}" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-4 col-sm-offset-1">
                                        <button class="btn btn-primary btn-sm" type="submit">搜索</button>
                                        <a href="{:url('Distributor/user_index')}" class="btn btn-default btn-sm">撤销搜索</a>
                                    </div>
                                </div>
                            </form>
                        </div>

                        <div class="fixed-table-toolbar">
                            <div class="bars pull-left" style="margin-top:0px;">
                                <a href="javascript:void(0);" class="btn btn-sm btn-primary search-toggle"><i class="fa fa-search"></i>&nbsp;&nbsp;搜索</a>
                                <a href="javascript:void(0);" class="btn btn-sm btn-primary confirm ajax-post" target-form="id" url="{:url('Distributor/remove')}"><i class="fa fa-close"></i>&nbsp;&nbsp;删除</a>

                            </div>
                        </div>
                        <div class="example-wrap">
                            <div class="example">
                                <table class="table table-hover">
                                    <thead>
                                    <tr>
                                        <th><input type="checkbox" class="i-checks check-all"></th>
                                        <th>Uid</th>
                                        <th>头像</th>
                                        <th>用户信息</th>
                                        <th>名称</th>
                                        <th>联系电话</th>
                                        <th>推广用户</th>
                                        <th>订单</th>
                                        <th>推广定金</th>
                                        <th>佣金</th>
                                        <th>已提现金额</th>
                                        <th>提现次数</th>
                                        <th>未提现金额</th>
                                        <th>由上级</th>


                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {volist name="data" id="vo"}
                                    <tr>
                                        <td><input type="checkbox" class="i-checks ids" name="uid[]" value="{$vo.uid}"/></td>
                                        <td>{$vo.uid}</td>
                                        <td><img src="{$vo.img}" alt="" width="100px" height="100px"></td>
                                        <td>{$vo.nickname}</td>
                                        <td>{$vo.name}</td>
                                        <td>{$vo.tel}</td>
                                        <td>{$vo.extension}</td>
                                        <td>{$vo.order}</td>
                                        <td>{$vo.deposit}</td>
                                        <td>{$vo.commission}</td>
                                        <td>{$vo.withdrawn}</td>
                                        <td>{$vo.count}</td>
                                        <td>{$vo.amount}</td>
                                        <td>{$vo.bysuperior}</td>


                                        <td>
                                            <div class="dropdown" style="display: inline-block;">
                                                <button data-toggle="dropdown" class="btn btn-success btn-xs dropdown-toggle">
                                                    <i class="fa fa-chevron-down"></i> 操作
                                                </button>
                                                <ul class="dropdown-menu m-t-xs">
                                                    <li><a href="{:url('Distributor/amout')}" ><i class="fa fa-paste"></i> 统计推广人列表 </a></li>
                                                    <!--                               <li><a href="Distribution/amout"><i class="fa fa-bars"></i>&nbsp;&nbsp;统计推广人列表</a></li>
                                                     -->                              <li><a href="{:url('Distributor/order')}"><i class="fa fa-bars"></i>&nbsp;&nbsp;统计推广订单</a></li>
                                                    <!-- <li><a href="Distribution/order"><i class="fa fa-tripadvisor"></i>&nbsp;&nbsp;推广方式</a></li> -->
                                                </ul>
                                            </div>
                                        </td>

                                        </td>

                                    </tr>
                                    {/volist}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

{/block}